# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=cpyrit-opencl
pkgver=0.4.0
pkgrel=4
pkgdesc='Pyrit support for Nvidia-CUDA.'
url='http://code.google.com/p/pyrit/'
license=('GPL3')
arch=('x86_64')
depends=('python2' 'openssl' 'zlib' 'libcl' 'nvidia' 'pyrit' 'opencl-headers')
makedepends=('gcc' 'python2' 'cuda-toolkit')
source=("http://pyrit.googlecode.com/files/$pkgname-$pkgver.tar.gz")
sha512sums=('c5892f5c5357e40c81141de5e8890ee7235580d0')

build() {
  cd "$pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --skip-build
}

